﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Travel.MVC
{
    /// <summary>
    /// 站点页面地址
    /// </summary>
    public static class SiteUrls
    {
        /// <summary>
        /// 主页
        /// </summary>
        /// <param name="url">UrlHelper</param>
        /// <returns>主页地址</returns>
        /// <remarks></remarks>
        public static string Index(this UrlHelper url)
        {
            return "/";
        }

        /// <summary>
        /// 登录页面
        /// </summary>
        /// <param name="url">UrlHelper</param>
        /// <returns>登录页面地址</returns>
        /// <remarks></remarks>
        public static string Login(this UrlHelper url)
        {
            return url.Action("account", "login");
        }

        /// <summary>
        /// 用户注销页面
        /// </summary>
        /// <param name="url">UrlHelper</param>
        /// <returns>
        /// 用户注销页面地址
        /// </returns>
        /// <remarks></remarks>
        public static string Logout(this UrlHelper url)
        {
            return url.Action("account", "logout");
        }
    }
}